package com.echo.code.thread.queue;

/**
 * BlockingQueue Created by baiyap on 2018/9/24.
 */
public interface BlockingQueue<E> {

  void offer(E e);

  E take();

  int size();

  default String getCurrentThreadName() {
    return Thread.currentThread().getName();
  }
}
